﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vhcs.Data.Dao
{
    class LeaveRequestDao
    {
        public void UpdateLeaveRequestStatus(long applicationID, int status)
        {
            string StoreName = @"TS_spLeaveRecord_UpdateStatus";

            object[] parms = {
                             "@ApplicationID", applicationID
                             ,"@LeaveStatus", status };
            Db.UpdateByProc(StoreName, parms);
        }


        public void UpdateHistoryProcess(long applicationID, int leaveStatusID, string userApprove)
        {
            string StoreName = @"TS_spLeaveProcess_InsertHistory";

            object[] parms = {
                             "@ApplicationID", applicationID
                             ,"@LeaveStatusID", leaveStatusID
                             ,"@AccountLogin", userApprove };
            Db.UpdateByProc(StoreName, parms);
        }
    }
}
